<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSharpsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sharps', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('store_id')->index()->comment('门店id');
            $table->string('active_name', '190')->comment('活动名称');
            $table->timestamp('active_start')->nullable()->comment('活动开始时间');
            $table->timestamp('active_end')->nullable()->comment('活动结束时间');
            
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sharps');
    }
}
